<?php

namespace Log\Handler;
use \Log\LogHandler;
use \Log\LogRecord;

class ConsoleLogHandler implements LogHandler {
	public function logRecord (LogRecord $rec) {
		$logger = $rec->getLogger()->getName();
		$msg = $rec->getMessage();
		$level = $rec->getLevel();
		$class = $rec->getClass();
		$method = $rec->getMethod();
		$file = $rec->getFile();
		$line = $rec->getLine();
		
		echo("[$logger]/$level:$file:$line:$class.$method: $msg\n");
	}
}
